<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        
        var  arr1=[1,2,3];
        var  arr2=[4,5,6];
        var  arr=[...arr1,...arr2]
        console.log(arr)

        var  obj1={
            name:"jack",
        }
        var  obj2={
            gender:"男"
        }
        var  obj={...obj1,...obj2}
        console.log(obj)
        
          



        </script>
</body>
</html>